package Work;

public class Dog extends Animal implements AnimalBehavior{
    public Dog(String name) {
        super(name);
    }

    @Override
    public void makeSound() {
        System.out.println(name+":汪汪叫");
    }
    @Override
    public void behave() {
        System.out.println("作狗叫");
    }
}
